#ifndef INPUTIMAGEGRAPHICSVIEW_H
#define INPUTIMAGEGRAPHICSVIEW_H

#include <QtGui>

class InputImageGraphicsView : public QGraphicsView {
	Q_OBJECT
public:
	InputImageGraphicsView(QGraphicsScene&, QWidget* parent=0, const char* name=0, Qt::WindowFlags f=0);
	~InputImageGraphicsView();
	void clear();
	void loadImage(QImage image);
	QImage Image();


protected:
	void wheelEvent(QWheelEvent *event);
	void resizeEvent ( QResizeEvent * event);
private:
	QGraphicsPixmapItem *imageItem;
	QImage myImage;
	bool hasImage;
	bool isWheelEventHappening;
	qreal myscale;
};

#endif